package entity

import (
	"shqsoft.cn/pasnj/base"
	"time"
)

//QDTYZC 贸易贷款
type QDTYZC struct {
	ID       int        `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	Xyck     string     `gorm:"column:是否协议存款;size:60"`
	Dqyck    string     `gorm:"column:是否定期质押存款;size:60"`
	Bzhu     string     `gorm:"column:备注;size:60"`
	Zhxz     string     `gorm:"column:帐户性质;size:60"`
	Jxfs     string     `gorm:"column:结息方式;size:60"`
	Cqi      string     `gorm:"column:存期;size:60"`
	Khmc     string     `gorm:"column:客户名称;size:60"`
	Kaimu    string     `gorm:"column:科目;size:60"`
	Huobi    string     `gorm:"column:币种;size:60"`
	Khwd     string     `gorm:"column:开户网点;size:60"`
	Zzhao    string     `gorm:"column:子帐号;size:60"`
	Zhao     string     `gorm:"column:帐号;size:60"`
	Khrq     *time.Time `gorm:"column:开户日期;type:date;"`
	Xhr      *time.Time `gorm:"column:销户日;type:date;"`
	Qxr      *time.Time `gorm:"column:起息日;type:date;"`
	Dqr      *time.Time `gorm:"column:到期日;type:date;"`
	Ffje     float64    `gorm:"column:月日均"`
	Dqye     float64    `gorm:"column:开户日均"`
	Yqje     float64    `gorm:"column:上日余额"`
	Ddangqye float64    `gorm:"column:当前余额"`
	Zjywsr   float64    `gorm:"column:中间业务收入"`
	Zhtzxs   float64    `gorm:"column:帐户调整系数2"`
	Zhte     float64    `gorm:"column:帐户调整系数"`
	Ll       float64    `gorm:"column:利率"`
	Ftp      float64    `gorm:"column:FTP"`
	Cqid     float64    `gorm:"column:存期ID"`
	Tjlx     float64    `gorm:"column:统计类型"`
}

//TableName User用户表名
func (QDTYZC) TableName() string {
	return "V_对公_同业业务"

}

// QDTYZCEF 贸易融资贷款
func QDTYZCEF() base.EntityFunc {
	return func() interface{} {
		entity := QDTYZC{}
		return &entity
	}
}

//QDTYZCESF GJ
func QDTYZCESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []QDTYZC
		return &entities
	}
}
func init() {
	base.DaoPoolObj.Put("QDTYZC", base.NewDefaultDao(QDTYZCEF(), QDTYZCESF(), nil))
}
